/* ---------------------------------------------Marlin Toolkit----------------------------------------*
Authors : Daniel Randle, Alex Bourne
Date Created : Mar 12 2013

File:
shaderwindow.cpp

Description:
This file contains the definition for the ShaderWindow class functions along with any
helper functions associated with the class
*-----------------------------------------------------------------------------------------------------*/

// Includes
#include <shaderwindow.h>

// Qt Includes
#include <qtreewidget.h>
#include <qboxlayout.h>

#ifdef DEBUG
#include <debug.h>
#endif

namespace ToolkitGui
{

/*-----------------------------*
|   class ShaderWindow BEGINS  |
*------------------------------*/
	ShaderWindow::ShaderWindow(QWidget * parent, Qt::WindowFlags f):QWidget(parent, f)
	{
		#ifdef DEBUG
		d = NULL;
		#endif
		_initObjects();
		_setupUi();
		_setupConnections();
	}

	void ShaderWindow::_initObjects()
	{
		treeView = new QTreeWidget(this);
		winLayV = new QVBoxLayout();
	}

	void ShaderWindow::_setupUi()
	{
		winLayV->addWidget(treeView);
		setLayout(winLayV);
	}

	void ShaderWindow::_setupConnections()
	{
		// connections here
	}

	#ifdef DEBUG
	void ShaderWindow::setDebug(Debug * debug)
	{
		d = debug;
	}
	#endif

}